package com.example.cehua

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.MotionEvent
import android.widget.Toast
import kotlinx.android.synthetic.main.item.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.item)


        rv.setOnClickListener {
            startActivity(Intent(this@MainActivity, ListActivity::class.java))
        }

        content2.setOnClickListener {
            Toast.makeText(this, "Content2", Toast.LENGTH_SHORT).show()
        }
        delete2.setOnClickListener {
            Toast.makeText(this, "delete2", Toast.LENGTH_SHORT).show()
        }
    }
}
